package com.burstly.lib.network.beans;

import com.burstly.lib.network.beans.cookie.CookieHolder;
import com.burstly.lib.network.beans.cookie.CookieManager;
import com.burstly.lib.network.beans.cookie.ICookieRequest;
import com.burstly.lib.util.LoggerExt;
import com.burstly.lib.util.Utils;
import java.util.Arrays;
import java.util.Calendar;

public class RequestData
  implements ICookieRequest, Cloneable
{
  protected static final LoggerExt LOG = LoggerExt.getInstance();
  protected static final String TAG = "RequestData";
  private Request data = new Request();

  public RequestData clone()
  {
    try
    {
      RequestData localRequestData = (RequestData)super.clone();
      if (this.data != null)
        localRequestData.data = this.data.clone();
      return localRequestData;
    }
    catch (CloneNotSupportedException localCloneNotSupportedException)
    {
      LOG.logThrowable("RequestData", localCloneNotSupportedException);
    }
    return null;
  }

  public String getCrParms()
  {
    return this.data.crParms;
  }

  public Request getData()
  {
    return this.data;
  }

  public String getPubTargeting()
  {
    return this.data.pubTargeting;
  }

  public String getPublisher()
  {
    return this.data.publisher;
  }

  public String getRvCR()
  {
    return this.data.rvCR;
  }

  public String getZone()
  {
    return this.data.zone;
  }

  public void setCrParms(String paramString)
  {
    Request.access$402(this.data, paramString);
  }

  public void setPubTargeting(String paramString)
  {
    Request.access$302(this.data, paramString);
  }

  public void setPublisher(String paramString)
  {
    Request.access$002(this.data, paramString);
  }

  public void setValidCookies()
  {
    this.data.setCookie(CookieManager.getValidCookies());
  }

  public void setZone(String paramString)
  {
    Request.access$202(this.data, paramString);
  }

  public class Request
    implements Cloneable
  {
    protected static final String TAG = "RequestData.Request";
    private String Id = "";
    private String acceptLanguage = "";
    private Integer adPool = Integer.valueOf(0);
    private String androidId = "";
    private String appUserId;
    private String bundleId = "";
    private String ccs = Utils.getCCSString();
    private Integer cct;
    private String cctDetailed;
    private String clientDateTime = calculateClientDateTime();
    private CookieHolder[] cookie;
    private String crParms = "";
    private Integer debugFlags = Integer.valueOf(0);
    private String deviceId = "";
    private String encDevId = "";
    private String encMAC;
    private String ipAddress = "";
    private String mac;
    private Integer noTrack = Integer.valueOf(0);
    private String placement = "";
    private String pubTargeting = "";
    private String publisher = "";
    private String rvCR = "";
    private String[] selectThisCreative;
    private String type = "iq";
    private UserAgentInfo userAgentInfo;
    private String zone = "";
    private String[] zoneSize;

    public Request()
    {
    }

    private String calculateClientDateTime()
    {
      Calendar localCalendar = Calendar.getInstance();
      int i = localCalendar.get(7);
      int j = localCalendar.get(12);
      int k = localCalendar.get(11);
      return i + "," + (j + k * 100);
    }

    private RequestData getOuterType()
    {
      return RequestData.this;
    }

    public Request clone()
    {
      try
      {
        Request localRequest = (Request)super.clone();
        if (this.zoneSize != null)
          localRequest.zoneSize = ((String[])this.zoneSize.clone());
        if (this.selectThisCreative != null)
          localRequest.selectThisCreative = ((String[])this.selectThisCreative.clone());
        if (this.cookie != null)
        {
          localRequest.cookie = new CookieHolder[this.cookie.length];
          for (int i = 0; i < this.cookie.length; i++)
            localRequest.cookie[i] = this.cookie[i].clone();
        }
        if (this.userAgentInfo != null)
          localRequest.userAgentInfo = this.userAgentInfo.clone();
        return localRequest;
      }
      catch (CloneNotSupportedException localCloneNotSupportedException)
      {
        RequestData.LOG.logThrowable("RequestData.Request", localCloneNotSupportedException);
      }
      return null;
    }

    public boolean equals(Object paramObject)
    {
      if (this == paramObject);
      Request localRequest;
      do
      {
        do
        {
          return true;
          if (paramObject == null)
            return false;
          if (getClass() != paramObject.getClass())
            return false;
          localRequest = (Request)paramObject;
          if (!getOuterType().equals(localRequest.getOuterType()))
            return false;
          if (this.Id == null)
          {
            if (localRequest.Id != null)
              return false;
          }
          else if (!this.Id.equals(localRequest.Id))
            return false;
          if (this.acceptLanguage == null)
          {
            if (localRequest.acceptLanguage != null)
              return false;
          }
          else if (!this.acceptLanguage.equals(localRequest.acceptLanguage))
            return false;
          if (this.adPool == null)
          {
            if (localRequest.adPool != null)
              return false;
          }
          else if (!this.adPool.equals(localRequest.adPool))
            return false;
          if (!Arrays.equals(this.zoneSize, localRequest.zoneSize))
            return false;
          if (!Arrays.equals(this.selectThisCreative, localRequest.selectThisCreative))
            return false;
          if (this.bundleId == null)
          {
            if (localRequest.bundleId != null)
              return false;
          }
          else if (!this.bundleId.equals(localRequest.bundleId))
            return false;
          if (this.ccs == null)
          {
            if (localRequest.ccs != null)
              return false;
          }
          else if (!this.ccs.equals(localRequest.ccs))
            return false;
          if (this.cct == null)
          {
            if (localRequest.cct != null)
              return false;
          }
          else if (!this.cct.equals(localRequest.cct))
            return false;
          if (this.cctDetailed == null)
          {
            if (localRequest.cctDetailed != null)
              return false;
          }
          else if (!this.cctDetailed.equals(localRequest.cctDetailed))
            return false;
          if (this.clientDateTime == null)
          {
            if (localRequest.clientDateTime != null)
              return false;
          }
          else if (!this.clientDateTime.equals(localRequest.clientDateTime))
            return false;
          if (!Arrays.equals(this.cookie, localRequest.cookie))
            return false;
          if (this.crParms == null)
          {
            if (localRequest.crParms != null)
              return false;
          }
          else if (!this.crParms.equals(localRequest.crParms))
            return false;
          if (this.debugFlags == null)
          {
            if (localRequest.debugFlags != null)
              return false;
          }
          else if (!this.debugFlags.equals(localRequest.debugFlags))
            return false;
          if (this.deviceId == null)
          {
            if (localRequest.deviceId != null)
              return false;
          }
          else if (!this.deviceId.equals(localRequest.deviceId))
            return false;
          if (this.androidId == null)
          {
            if (localRequest.androidId != null)
              return false;
          }
          else if (!this.androidId.equals(localRequest.androidId))
            return false;
          if (this.encDevId == null)
          {
            if (localRequest.encDevId != null)
              return false;
          }
          else if (!this.encDevId.equals(localRequest.encDevId))
            return false;
          if (this.ipAddress == null)
          {
            if (localRequest.ipAddress != null)
              return false;
          }
          else if (!this.ipAddress.equals(localRequest.ipAddress))
            return false;
          if (this.noTrack == null)
          {
            if (localRequest.noTrack != null)
              return false;
          }
          else if (!this.noTrack.equals(localRequest.noTrack))
            return false;
          if (this.placement == null)
          {
            if (localRequest.placement != null)
              return false;
          }
          else if (!this.placement.equals(localRequest.placement))
            return false;
          if (this.pubTargeting == null)
          {
            if (localRequest.pubTargeting != null)
              return false;
          }
          else if (!this.pubTargeting.equals(localRequest.pubTargeting))
            return false;
          if (this.publisher == null)
          {
            if (localRequest.publisher != null)
              return false;
          }
          else if (!this.publisher.equals(localRequest.publisher))
            return false;
          if (this.rvCR == null)
          {
            if (localRequest.rvCR != null)
              return false;
          }
          else if (!this.rvCR.equals(localRequest.rvCR))
            return false;
          if (this.type == null)
          {
            if (localRequest.type != null)
              return false;
          }
          else if (!this.type.equals(localRequest.type))
            return false;
          if (this.userAgentInfo == null)
          {
            if (localRequest.userAgentInfo != null)
              return false;
          }
          else if (!this.userAgentInfo.equals(localRequest.userAgentInfo))
            return false;
          if (this.zone == null)
          {
            if (localRequest.zone != null)
              return false;
          }
          else if (!this.zone.equals(localRequest.zone))
            return false;
          if (this.appUserId == null)
          {
            if (localRequest.appUserId != null)
              return false;
          }
          else if (!this.appUserId.equals(localRequest.appUserId))
            return false;
          if (this.mac == null)
          {
            if (localRequest.mac != null)
              return false;
          }
          else if (!this.mac.equals(localRequest.mac))
            return false;
          if (this.encMAC != null)
            break;
        }
        while (localRequest.encMAC == null);
        return false;
      }
      while (this.encMAC.equals(localRequest.encMAC));
      return false;
    }

    public String getAcceptLanguage()
    {
      return this.acceptLanguage;
    }

    public String[] getAdSize()
    {
      return this.zoneSize;
    }

    public String getAndroidId()
    {
      return this.androidId;
    }

    public String getAppUserId()
    {
      return this.appUserId;
    }

    public String getBundleId()
    {
      return this.bundleId;
    }

    public String getCcs()
    {
      return this.ccs;
    }

    public Integer getCct()
    {
      return this.cct;
    }

    public String getCctDetailed()
    {
      return this.cctDetailed;
    }

    public CookieHolder[] getCookie()
    {
      return this.cookie;
    }

    public String getEncDevId()
    {
      return this.encDevId;
    }

    public String getEncMAC()
    {
      return this.encMAC;
    }

    public String getMac()
    {
      return this.mac;
    }

    public String getRvCR()
    {
      return this.rvCR;
    }

    public String[] getSelectThisCreative()
    {
      return this.selectThisCreative;
    }

    public int hashCode()
    {
      int i = 31 * (31 + getOuterType().hashCode());
      int j;
      int m;
      label40: int i1;
      label59: int i3;
      label101: int i5;
      label121: int i7;
      label141: int i9;
      label161: int i11;
      label181: int i13;
      label212: int i15;
      label232: int i17;
      label252: int i19;
      label272: int i21;
      label292: int i23;
      label312: int i25;
      label332: int i27;
      label352: int i29;
      label372: int i31;
      label392: int i33;
      label412: int i35;
      label432: int i37;
      label452: int i39;
      label472: int i41;
      label492: int i43;
      label512: int i44;
      int i45;
      if (this.Id == null)
      {
        j = 0;
        int k = 31 * (i + j);
        if (this.acceptLanguage != null)
          break label553;
        m = 0;
        int n = 31 * (k + m);
        if (this.adPool != null)
          break label565;
        i1 = 0;
        int i2 = 31 * (31 * (31 * (n + i1) + Arrays.hashCode(this.zoneSize)) + Arrays.hashCode(this.selectThisCreative));
        if (this.bundleId != null)
          break label577;
        i3 = 0;
        int i4 = 31 * (i2 + i3);
        if (this.ccs != null)
          break label589;
        i5 = 0;
        int i6 = 31 * (i4 + i5);
        if (this.cct != null)
          break label601;
        i7 = 0;
        int i8 = 31 * (i6 + i7);
        if (this.cctDetailed != null)
          break label613;
        i9 = 0;
        int i10 = 31 * (i8 + i9);
        if (this.clientDateTime != null)
          break label625;
        i11 = 0;
        int i12 = 31 * (31 * (i10 + i11) + Arrays.hashCode(this.cookie));
        if (this.crParms != null)
          break label637;
        i13 = 0;
        int i14 = 31 * (i12 + i13);
        if (this.debugFlags != null)
          break label649;
        i15 = 0;
        int i16 = 31 * (i14 + i15);
        if (this.deviceId != null)
          break label661;
        i17 = 0;
        int i18 = 31 * (i16 + i17);
        if (this.androidId != null)
          break label673;
        i19 = 0;
        int i20 = 31 * (i18 + i19);
        if (this.encDevId != null)
          break label685;
        i21 = 0;
        int i22 = 31 * (i20 + i21);
        if (this.ipAddress != null)
          break label697;
        i23 = 0;
        int i24 = 31 * (i22 + i23);
        if (this.noTrack != null)
          break label709;
        i25 = 0;
        int i26 = 31 * (i24 + i25);
        if (this.placement != null)
          break label721;
        i27 = 0;
        int i28 = 31 * (i26 + i27);
        if (this.pubTargeting != null)
          break label733;
        i29 = 0;
        int i30 = 31 * (i28 + i29);
        if (this.publisher != null)
          break label745;
        i31 = 0;
        int i32 = 31 * (i30 + i31);
        if (this.rvCR != null)
          break label757;
        i33 = 0;
        int i34 = 31 * (i32 + i33);
        if (this.type != null)
          break label769;
        i35 = 0;
        int i36 = 31 * (i34 + i35);
        if (this.userAgentInfo != null)
          break label781;
        i37 = 0;
        int i38 = 31 * (i36 + i37);
        if (this.zone != null)
          break label793;
        i39 = 0;
        int i40 = 31 * (i38 + i39);
        if (this.appUserId != null)
          break label805;
        i41 = 0;
        int i42 = 31 * (i40 + i41);
        if (this.mac != null)
          break label817;
        i43 = 0;
        i44 = 31 * (i42 + i43);
        String str = this.encMAC;
        i45 = 0;
        if (str != null)
          break label829;
      }
      while (true)
      {
        return i44 + i45;
        j = this.Id.hashCode();
        break;
        label553: m = this.acceptLanguage.hashCode();
        break label40;
        label565: i1 = this.adPool.hashCode();
        break label59;
        label577: i3 = this.bundleId.hashCode();
        break label101;
        label589: i5 = this.ccs.hashCode();
        break label121;
        label601: i7 = this.cct.hashCode();
        break label141;
        label613: i9 = this.cctDetailed.hashCode();
        break label161;
        label625: i11 = this.clientDateTime.hashCode();
        break label181;
        label637: i13 = this.crParms.hashCode();
        break label212;
        label649: i15 = this.debugFlags.hashCode();
        break label232;
        label661: i17 = this.deviceId.hashCode();
        break label252;
        label673: i19 = this.androidId.hashCode();
        break label272;
        label685: i21 = this.encDevId.hashCode();
        break label292;
        label697: i23 = this.ipAddress.hashCode();
        break label312;
        label709: i25 = this.noTrack.hashCode();
        break label332;
        label721: i27 = this.placement.hashCode();
        break label352;
        label733: i29 = this.pubTargeting.hashCode();
        break label372;
        label745: i31 = this.publisher.hashCode();
        break label392;
        label757: i33 = this.rvCR.hashCode();
        break label412;
        label769: i35 = this.type.hashCode();
        break label432;
        label781: i37 = this.userAgentInfo.hashCode();
        break label452;
        label793: i39 = this.zone.hashCode();
        break label472;
        label805: i41 = this.appUserId.hashCode();
        break label492;
        label817: i43 = this.mac.hashCode();
        break label512;
        label829: i45 = this.encMAC.hashCode();
      }
    }

    public void setAcceptLanguage(String paramString)
    {
      this.acceptLanguage = paramString;
    }

    public void setAdSize(String paramString)
    {
      if (paramString != null)
      {
        this.zoneSize = new String[1];
        this.zoneSize[0] = paramString;
      }
    }

    public void setAndroidId(String paramString)
    {
      this.androidId = paramString;
    }

    public void setAppUserId(String paramString)
    {
      this.appUserId = paramString;
    }

    public void setBundleId(String paramString)
    {
      this.bundleId = paramString;
    }

    public void setCcs(String paramString)
    {
      this.ccs = paramString;
    }

    public void setCct(Integer paramInteger)
    {
      this.cct = paramInteger;
    }

    public void setCctDetailed(String paramString)
    {
      this.cctDetailed = paramString;
    }

    public void setCookie(CookieHolder[] paramArrayOfCookieHolder)
    {
      this.cookie = paramArrayOfCookieHolder;
    }

    public void setDeviceId(String paramString)
    {
      this.deviceId = paramString;
    }

    public void setEncDevId(String paramString)
    {
      this.encDevId = paramString;
    }

    public void setEncMAC(String paramString)
    {
      this.encMAC = paramString;
    }

    public void setId(String paramString)
    {
      this.Id = paramString;
    }

    public void setMac(String paramString)
    {
      this.mac = paramString;
    }

    public void setRvCR(String paramString)
    {
      this.rvCR = paramString;
    }

    public void setSelectThisCreative(String[] paramArrayOfString)
    {
      this.selectThisCreative = paramArrayOfString;
    }

    public void setUserAgentInfo(UserAgentInfo paramUserAgentInfo)
    {
      this.userAgentInfo = paramUserAgentInfo;
    }

    public String toString()
    {
      return "Request [Id=" + this.Id + ", acceptLanguage=" + this.acceptLanguage + ", adSizes=" + Arrays.toString(this.zoneSize) + ", deviceId=" + this.deviceId + ", androidId=" + this.androidId + ", encDevId=" + this.encDevId + ", rvCR=" + this.rvCR + ", type=" + this.type + ", cookie=" + Arrays.toString(this.cookie) + ", bundleId=" + this.bundleId + ", appUserId=" + this.appUserId + ", pubTargeting=" + this.pubTargeting + ", publisher=" + this.publisher + ", userAgentInfo=" + this.userAgentInfo + ", zone=" + this.zone + ", clientDateTime=" + this.clientDateTime + ", ipAddress=" + this.ipAddress + ", noTrack=" + this.noTrack + ", placement=" + this.placement + ", adPool=" + this.adPool + ", debugFlags=" + this.debugFlags + ", crParms=" + this.crParms + ", ccs=" + this.ccs + ", cct=" + this.cct + ", cctDetailed=" + this.cctDetailed + ", mac=" + this.mac + ", encMAC=" + this.encMAC + ", selectThisCreative=" + Arrays.toString(this.selectThisCreative) + "]";
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.network.beans.RequestData
 * JD-Core Version:    0.6.2
 */